import React from 'react';
import styles from './index.less';

const Standard: React.FC<{ source: Question.StandardSource }> = (props) => {
  const {
    source: { replyStandardsDetail = '', titleDemo, contentDemo },
  } = props;
  return (
    <div className={styles.standard}>
      <div className={styles['standard-title']}>回复标准</div>
      <div
        className={styles['standard-text']}
        dangerouslySetInnerHTML={{ __html: replyStandardsDetail }}
      />

      <div className={styles['standard-title']}>Demo</div>
      <div className={styles['standard-text2']}>
        <p dangerouslySetInnerHTML={{ __html: titleDemo }} />
        <p dangerouslySetInnerHTML={{ __html: contentDemo }} />
      </div>
    </div>
  );
};

export default Standard;
